﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Linq;
using System.Data.Linq.Mapping;

namespace Runda.CMS.Order.Entity
{
    [Table(Name = "OrderInfo")]
    public class OrderInfo
    {
        [Column(Name = "cCusCode", DbType = "VarChar(20)", CanBeNull = true, UpdateCheck = UpdateCheck.Never)]
        public String customerID { get; set; }

        [Column(Name = "cCusName", DbType = "VarChar(100) ", CanBeNull = true, UpdateCheck = UpdateCheck.Never)]
        public String customerName { get; set; }

        [Column(Name = "iQuantity",  CanBeNull = true, UpdateCheck = UpdateCheck.Never)]
        public decimal? orderQuantity { get; set; }

        [Column(Name = "cOrderId", DbType = "VarChar(30) ", CanBeNull = true, UpdateCheck = UpdateCheck.Never)]
        public String billNo { get; set; }

        [Column(Name = "cInvName", DbType = "VarChar(60) ", CanBeNull = true, UpdateCheck = UpdateCheck.Never)]
        public String inventoryName { get; set; }

        [Column(Name = "cInvBarCode", DbType = "VarChar(20) ", CanBeNull = true, UpdateCheck = UpdateCheck.Never)]
        public String inventoryCode { get; set; }

        [Column(Name = "sendQuantity", CanBeNull = true, UpdateCheck = UpdateCheck.Never)]
        public decimal? sendQuantity { get; set; }

        [Column(Name = "sendIsQuantity",  CanBeNull = true, UpdateCheck = UpdateCheck.Never)]
        public decimal? sendIsQuantity { get; set; }

        [Column(Name = "inventoryStandard", DbType = "VarChar(30) ", CanBeNull = true, UpdateCheck = UpdateCheck.Never)]
        public String inventoryStandard { get; set; }

        [Column(Name = "orderDate", DbType = "VarChar(10)", CanBeNull = true, UpdateCheck = UpdateCheck.Never)]
        public String orderDate { get; set; }

        [Column(Name = "orderTime", DbType = "VarChar(20)", CanBeNull = true, UpdateCheck = UpdateCheck.Never)]
        public String orderTime { get; set; }

        [Column(Name = "orderDetailID", DbType = "VarChar(10)", CanBeNull = true, UpdateCheck = UpdateCheck.Never)]
        public String orderDetailID { get; set; }

        [Column(Name = "cVouchId", DbType = "VarChar(10)", CanBeNull = true, UpdateCheck = UpdateCheck.Never)]
        public String cVouchId { get; set; }
        
        [Column(Name = "sendDate", DbType = "VarChar(10)", CanBeNull = true, UpdateCheck = UpdateCheck.Never)]
        public String sendDate{get;set;}
        
        [Column(Name = "cSendcompany", DbType = "nvarChar(20)", CanBeNull = true, UpdateCheck = UpdateCheck.Never)]
        public String deliveryCompany { get; set; }

        [Column(Name = "cSendbillNo", DbType = "VarChar(30)", CanBeNull = true, UpdateCheck = UpdateCheck.Never)]
        public String deliveryNum { get; set; }

        [Column(Name = "preReceivedDate", DbType = "VarChar(10)", CanBeNull = true, UpdateCheck = UpdateCheck.Never)]
        public String preReceiveDate { get; set; }

        [Column(Name = "ReceivedDate", DbType = "VarChar(10)", CanBeNull = true, UpdateCheck = UpdateCheck.Never)]
        public String receiveDate{get;set;}

        [Column(Name = "ReceivedMan", DbType = "VarChar(10)", CanBeNull = true, UpdateCheck = UpdateCheck.Never)]
        public String receivedMan{get;set;}

        [Column(Name = "cBatchCode", DbType = "VarChar(20)", CanBeNull = true, UpdateCheck = UpdateCheck.Never)]
        public String BatchCode { get; set; }

        [Column(Name = "cVDate", DbType = "VarChar(10)", CanBeNull = true, UpdateCheck = UpdateCheck.Never)]
        public String VDate { get; set; }

        [Column(Name = "cStatus", DbType = "VarChar(20)", CanBeNull = true, UpdateCheck = UpdateCheck.Never)]
        public String Status { get; set; }

        [Column(Name = "cInvM_Unit", DbType = "VarChar(10)", CanBeNull = true, UpdateCheck = UpdateCheck.Never)]
        public String InvM_Unit { get; set; }

    }
}
